﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability_2203.Common.Domains;

namespace Traceability_2203.Common.DBContexts
{
    /// <summary>
    /// EF上下文
    /// </summary>
    public class EFDBContext : DbContext
    {
        public EFDBContext(DbContextOptions<EFDBContext> options) : base(options) { }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<Users> Users { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Roles> Roles { get; set; }
    }
}
